/*
 * @Author: 肖思汗 
 * @Date: 2025-07-24 14:08:32 
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-07-24 14:26:14
 */


import { ReactNode, useState } from 'react';
import styles from './version.module.less';

import { Divider } from '@nutui/nutui-react-taro';
import clsx from 'clsx';
import { observer } from "mobx-react-lite";

// 导出版本号常量，方便其他组件使用
export const VERSION_NUMBER = '1.1.4';

interface Iprops {
    children?: ReactNode
}

// 版本号
const Version = observer((props: Iprops) => {

    const [show, setShow] = useState(true);

    return (
        <div
            className={clsx(styles.version, show && styles.show)}
        >
            <Divider
                contentPosition="center"
            >版本号：{VERSION_NUMBER}</Divider>
        </div>
    );
});

export default Version;